package com.jzlin.funhub.admin.model.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 站内私信会话列表.
 *
 * @author linjz
 * @since 2025/8/26
 */
@Data
public class SysMessageSessionResp {
    @ApiModelProperty("会话id")
    private Long sessionId;

    @ApiModelProperty("联系人id")
    private Long userId;

    @ApiModelProperty("联系人名称")
    private String userName;

    @ApiModelProperty("联系人头像")
    private String userAvatar;

    @ApiModelProperty("最后一条消息内容")
    private String messageContent;

    @ApiModelProperty("最后一条消息时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date messageTime;

    @ApiModelProperty("未读消息数")
    private Integer notReadCount;
}
